package ModelLayer;


/**
 * Write a description of class Loan here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Loan
{
    // instance variables - replace the example below with your own
    private long id;
    private String dato;
    private String period;
    private String status;
    private Person person;
    private eksemplar eks;
    

    /**
     * Constructor for objects of class Loan
     */
    public Loan(long id, String dato, String period, String status)
    {
        this.id = id;
        this.dato = dato;
        this.period = period;
        this.status = status;
        
    }
    
    public void setId(long id)
    {
        this.id = id;
    }
    
    public void setDato(String dato)
    {
        this.dato = dato;
    }
    
    public void setPeriod(String period)
    {
        this.period = period;
    }
    
    public void setStatus(String status)
    {
        this.status = status;
    }
    
      
    public long getId()
    {
        return id;
    }
    
    public String getDato()
    {
        return dato;
    }
    
    public String getPeriod()
    {
        return period;
    }
    
    public String getStatus()
    {
        return status;
    }
    
    
    public void print()
    {
       System.out.println("ID:              " + id);
       System.out.println("Dato:            " + dato);
       System.out.println("Periode:         " + period);
       System.out.println("Status:          " + status);
    }
    
    
}
